﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ContractWarn.aspx.cs" Inherits="Contract_ContractWarn" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>基站合同预警</title>
    <script type="text/javascript" src="../Scripts/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-1.9.2.custom.min.js"></script>
    <link rel="Stylesheet" href="../Content/redmond/jquery-ui-1.9.2.custom.min.css" />
    <link rel="stylesheet" href="../Content/SysManage.css" type="text/css" /> 
    <script type="text/javascript" src="../Scripts/Contract/ContractWarn.js"></script> 
</head>
<body>
    <form id="form1" runat="server">
    <div class="ContentDiv">
        <fieldset class="ui-grid-a"> 
        <legend>基站付款提醒列表</legend>
        <asp:GridView ID="PayList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content" OnRowCommand="Pay_RowCommand">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:BoundField DataField="Contract_No" HeaderText="合同编号" SortExpression="Contract_No"
                        ReadOnly="True"></asp:BoundField>
                    <asp:BoundField DataField="Cell_CHName" HeaderText="基站" SortExpression="Cell_CHName" />
                    <asp:BoundField DataField="Cell_Type" HeaderText="基站类型" SortExpression="Cell_Type" />
                    <asp:BoundField DataField="Other_Name" HeaderText="对方名称" SortExpression="Other_Name">
                    </asp:BoundField>
                    <asp:BoundField DataField="Begin_Date" HeaderText="起始日期" SortExpression="Begin_Date" />                    
                    <asp:BoundField DataField="Pay_Date" HeaderText="付款日期" SortExpression="Pay_Date" />
                    <asp:BoundField DataField="Contract_Value" HeaderText="合同金额" SortExpression="Contract_Value" />
                    <asp:TemplateField>
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            <asp:Button ID="PayAction" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="付款" CommandName="Pay" CommandArgument='<%# Bind("Contract_No")%>' 
                                CssClass="ui-button ui-state-default ui-corner-all" OnClientClick="return confirm('确认已完成付款？');"/>                         
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <webdiyer:AspNetPager ID="PayPager" runat="server" OnPageChanged="PayPager_PageChanged">
                </webdiyer:AspNetPager>
            </div>
            </fieldset>
            <fieldset class="ui-grid-a"> 
        <legend>基站续签提醒列表</legend>
        <asp:GridView ID="RenewList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content" OnRowCommand="Renew_RowCommand">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:BoundField DataField="Contract_No" HeaderText="合同编号" SortExpression="Contract_No"
                        ReadOnly="True"></asp:BoundField>
                    <asp:BoundField DataField="Cell_CHName" HeaderText="基站" SortExpression="Cell_CHName" />
                    <asp:BoundField DataField="Cell_Type" HeaderText="基站类型" SortExpression="Cell_Type" />
                    <asp:BoundField DataField="Other_Name" HeaderText="对方名称" SortExpression="Other_Name">
                    </asp:BoundField>
                    <asp:BoundField DataField="Begin_Date" HeaderText="起始日期" SortExpression="Begin_Date" />
                    <asp:BoundField DataField="End_Date" HeaderText="终止日期" SortExpression="EndDate" />
                    <asp:TemplateField>
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            <asp:Button ID="RenewAction" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="续签" CommandName="Renew" CommandArgument='<%# Bind("Contract_No")%>' 
                                CssClass="ui-button ui-state-default ui-corner-all"/>                         
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <webdiyer:AspNetPager ID="RenewPager" runat="server" OnPageChanged="RenewPager_PageChanged">
                </webdiyer:AspNetPager>
            </div>
            </fieldset>
    </div>
        <asp:Literal ID="Company" runat="server" Visible="false"></asp:Literal>
    </form>
</body>
</html>
